import { request } from '@/utils'

export default {
  getDepartments: (params = {}) => request.post('department/page', params),
  getParentDepartments: (params = {}) => request.post('department/parent/page', params),
  getPostById: (id) => request.get(`/post/${id}`),
  addPost: (data) => request.post('/post', data),
  updateDepartment: (data) => request.post(`/department/update`, data),
  deleteDepartment: (id) => request.post(`/department/delete/${id}`),
}
